home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TPUG - Toronto PET Users Group
/
TPUG Users Group CD
/
TPUG Users Group CD.iso
/
AMIGA
/
AMICUS
/
AMICUS01.ADF
/
Text
/
CLI Card
< prev
next >
Wrap
Text File
|
1985-12-04
|
8KB
|
346 lines
AMICUS Amiga Reference Card
AmigaDOS Commands
; comment
> redirect standard input
< redirect standard output
Assign logicaldevice: dir
Break processnumber [ALL][C][D][E][F]
CD dir
Copy [dir|file] [TO] dir|file
[ALL][QUIET]
Date [dd-mmm-yy] [[h]h:mm[:ss]]
Delete file|dir ...
Dir [file|dir] [OPT A|D|I]
A: all subdirectories,
D: only directory names,
I: interactive
Diskcopy DFn: to DFm: [new name string]
Echo "string"
EndCLI stop this CLI
Fault n ...
FileNote file "string"
Format DRIVE DFn: NAME "string"
Info
give stats on known drives
Install DFn:
Join file ... AS new_file
List [file|dir] [P pattern]
[S pattern] [KEYS]
[[NO]DATES] [QUICK]
[SINCE date] [UPTO date]
MakeDir dir
NewCLI ["x/y/width/height/[name]"]
Prompt "string"
Use %n in string to include
current task number in prompt.
Protect file|dir [R][W][D][E]
Rename file|dir file|dir
Run program [args]
[+ program [args] ] ...
Search dir|pattern
[SEARCH] "string" [ALL]
Sort infile outfile [COLSTART n]
Stack number
Status [processnumber] [FULL] [TCB]
[SEGS] [ALL]
Type file [OPT N|H]
N: show line numbers
H: display in hex
Wait number SEC|MIN
[UNTIL hh:mm]
Why
tell why last command failed
dir means a directory name, like
include/lattice
file means a file name, like
mywork.txt
filespec means a directory name or
a file name
string means quoted text, like
"Disk No. 5"
... means you can have up to 10 of
these arguments, in most cases
Optional arguments are in square
brackets, []. You must choose
one of the modifiers separated
with a vertical bar, |, if the
argument has modifiers.
Available logical devices are:
sys: ram: libs:
fonts: t:
AMICUS Amiga Reference Card
AmigaDOS Execute commands
Execute file [arguments]
FailAt number
exit execute file with given
AmigaDOS error number.
IF condition
Condition is one of:
[NOT] WARN|ERROR|FAIL
[NOT] string1 EQ string2
[NOT] EXISTS file
ENDIF
labels begin with :
Skip [label]
LAB [label]
Quit [return_code]
AMICUS Amiga Reference Card
ED Commands
Commands in the ESC column are typed
after ESC is pressed, at the * prompt.
^ in the Key column means use the Ctrl
key with the given key.
Cursor movement commands
ESC Key Action
----------------------------
CL Move left one char
CR Move right one char
Move up one line
Move down one line
^I Move right by TAB size
^R Move left one word
^T Move right one word
CS Move to start of line
CE Move to end of line
^] Move to start of line
or end of line
N Move to start of next line
P " " start of previous line
^E Move to top or bottom line
of current screen
^D Scroll text down
^U Scroll text up
B Bottom of file
T Top of file
Text changes
ESC Key Action
----------------------------
S ^M Insert carriage return
A/s/ Insert s as a line before
I/s/ ^A Insert s as a line after
IB Insert block previously
marked with BS, BE
IF/foo/ Insert file named foo at
present location
DC DEL Delete current character
BS Delete previous character
^O Delete next word
J Join lines (delete next
carriage return)
^Y Delete to end of line
D ^B Delete line
DB Delete Block previously
marked with BS, BE
EQ/s/t/ Exchange w/Query before
change is made
E/s/t/ Exchange string s with t
BE Mark block end
BS Mark block start
SB Show block
F/s/ Find string s
BF Find, looking backwards
LC Turn on upper/lower case
checking in searches
UC Turn off case checking
AMICUS Amiga Reference Card
Other commands:
ESC Key Action
----------------------------
U Undo changes on this line
RP Repeat until error
SL Set Left margin
SR Set Right margin
ST Set TAB size
EX Extend right margin
SH Show information
Q Quit, do not save work
SA Save file, continue
(Note: the SA command is buggy; it
sometimes erases the line you were
on. Move to a blank line before
using SA to temporarily exit ED.)
WB/foo/ Write block to file foo
X Exit and save work
^G Repeat last ESC command
AMICUS Amiga Reference Card
Alert message numbers
0 Debug() call
1 ???
2 bus error
3 address error
4 illegal instruction
5 division by zero
6 CHK instruction
7 TRAPV instruction
8 privileged instruction
9 single step trace
A line 1010 emulator
B line 1111 emulator
2x trap instructions
2F normal break point
AMICUS Amiga Reference Card
Lattice C compiler options
LC1 [LC1Options] file
LC2 [LC2Options] file
LC1Options:
-b
-cc nest comments
-cd allow '$' in symbols
-cm allow 'cc'
-cs use one copy of string
constants
-cu force all "char" to
"unsigned char"
-cw ignore return()'s
-d put debug info in quad
file
-dsymbol[=value]
define symbol
-idir/
include file directory
-l align data to an even
4 byte address
-n ignore chars 9-31 of
symbol names
-oname quad file name
-p create C preprocessor
output only
-u remove predefined
#define's
-x definitions outside
functions are treated
as external references,
not external definitions
LC2Options:
-f5|6 Use A5 or A6 for -b
option
-oname output file name
-s load contiguously
AMICUS Amiga Reference Card
Assembler options
Assem prog [-o outfile] [-c options]
[-i includedirectory/]
[-l listfile]
options:
S place symbols in -o file
D no local symbols in -o file
C ignore label case
X add xref info to -l file
Wn set workspace stack size
(default is 8000)
AMICUS Amiga Reference Card
Linker options
Alink file [+ file] ... [WITH file]
[LIB file [+ library] ...]
[XREF file] [WIDTH number]
[MAP file] [TO file]
example:
ALink startup.o+foo.o
LIB lc.lib+amiga.lib TO foo.ld
Reference card by John Foust, Bruce Barrett,
Dale Luck, et. al.
AMICUS is a free, non-profit Amiga users
group. To join, send two self-addressed,
stamped envelopes to:
John Foust
Sight & Sound Music Software
16 N. Carroll St., Suite 600
Madison, Wisconsin 53703
AMICUS has a public domain disk library
and special disks for Amiga developers.
If you are a developer, please include
proof of developer status, such as a
xerox of your acceptance letter.